import tkinter as tk
from tkinter import messagebox

from config.di_container import Container


def main():
    root = tk.Tk()
    root.withdraw()
    messagebox.showinfo("程序运行", "Excel数据处理器正在运行，请点击确定开始处理...请注意核心数据给药，采用的是ECSTDAT和ECSTTIM")
    container = Container()
    service = container.build_service()
    output_path = service.run()

    messagebox.showinfo("处理完成", f"Excel数据处理已完成！\n输出文件：{output_path}")


if __name__ == "__main__":
    main()
